
#include <iostream>
#include "pch.h"
#include "native.h"
#include "http.h"

using namespace std;


JNIEXPORT void JNICALL Java_io_arukas_jni_Native_Hello(JNIEnv*, jclass) {
	cout <<"hello world" << endl;
	printf("Hello World, 你好\n");
}

JNIEXPORT jint JNICALL Java_io_arukas_jni_Native_echo
(JNIEnv*, jclass, jint num) {
	return num * 2;
}


JNIEXPORT jint JNICALL Java_io_arukas_controller_JNIController_add
(JNIEnv*, jclass, jint a, jint b) {
	return a + b;
}